﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 收款单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class RecBillHeadAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public RecBillHeadAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
					RecObjType= 0; 
				
		
		
		
		
		
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        			if (this.Transactor != null) 
			{
				this.Transactor.DoSerializeKeyList(dict);
			}
	        			if (this.Cust != null) 
			{
				this.Cust.DoSerializeKeyList(dict);
			}
	        			if (this.RC != null) 
			{
				this.RC.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.DocumentType != null) 
			{
				this.DocumentType.DoSerializeKeyList(dict);
			}
	        			if (this.Dept != null) 
			{
				this.Dept.DoSerializeKeyList(dict);
			}
	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        			if (this.Project != null) 
			{
				this.Project.DoSerializeKeyList(dict);
			}
	        			if (this.RecBillLines!=null)
			{
				foreach(ufida.u9.ait.openapi.RecBillLineAITDTOData objdata in this.RecBillLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.FC != null) 
			{
				this.FC.DoSerializeKeyList(dict);
			}
	        			if (this.Supp != null) 
			{
				this.Supp.DoSerializeKeyList(dict);
			}
	        			if (this.Receiver != null) 
			{
				this.Receiver.DoSerializeKeyList(dict);
			}
	        	        			if (this.TaxSchedule != null) 
			{
				this.TaxSchedule.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public RecBillHeadAITDTOData(  System.String docNo  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData transactor  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData cust  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData rC  , System.Int32 recObjType  , System.String recDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData documentType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData dept  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData project  , List<ufida.u9.ait.openapi.RecBillLineAITDTOData> recBillLines  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData fC  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData supp  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData receiver  , System.String note  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData taxSchedule  )
		{
			initData();
			this.DocNo = docNo;
			this.Transactor = transactor;
			this.Cust = cust;
			this.RC = rC;
			this.RecObjType = recObjType;
			this.RecDate = recDate;
			this.DocumentType = documentType;
			this.Dept = dept;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
			this.Project = project;
			this.RecBillLines = recBillLines;
			this.FC = fC;
			this.Supp = supp;
			this.Receiver = receiver;
			this.Note = note;
			this.TaxSchedule = taxSchedule;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 单号
		/// 收款单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务员
		/// 收款单AITDTO.Misc.业务员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_transactor ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Transactor
		{
			get	
			{	
				return m_transactor ;
			}
			set	
			{	
				m_transactor = value ;	
			}
		}
			
		

		/// <summary>
		/// 客户
		/// 收款单AITDTO.Misc.客户
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_cust ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Cust
		{
			get	
			{	
				return m_cust ;
			}
			set	
			{	
				m_cust = value ;	
			}
		}
			
		

		/// <summary>
		/// 币种
		/// 收款单AITDTO.Misc.币种
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_rC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData RC
		{
			get	
			{	
				return m_rC ;
			}
			set	
			{	
				m_rC = value ;	
			}
		}
			
		

		/// <summary>
		/// 收款对象
		/// 收款单AITDTO.Misc.收款对象
		/// </summary>
		private System.Int32 m_recObjType ;
		[DataMember(IsRequired=false)]
		public System.Int32 RecObjType
		{
			get	
			{	
				return m_recObjType ;
			}
			set	
			{	
				m_recObjType = value ;	
			}
		}
			
		

		/// <summary>
		/// 收款日期
		/// 收款单AITDTO.Misc.收款日期
		/// </summary>
		private System.String m_recDate ;
		[DataMember(IsRequired=false)]
		public System.String RecDate
		{
			get	
			{	
				return m_recDate ;
			}
			set	
			{	
				m_recDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 收款单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_documentType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DocumentType
		{
			get	
			{	
				return m_documentType ;
			}
			set	
			{	
				m_documentType = value ;	
			}
		}
			
		

		/// <summary>
		/// 部门
		/// 收款单AITDTO.Misc.部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_dept ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Dept
		{
			get	
			{	
				return m_dept ;
			}
			set	
			{	
				m_dept = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 收款单AITDTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 收款单AITDTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 项目
		/// 收款单AITDTO.Misc.项目
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_project ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Project
		{
			get	
			{	
				return m_project ;
			}
			set	
			{	
				m_project = value ;	
			}
		}
			
		

		/// <summary>
		/// 收款单行
		/// 收款单AITDTO.Misc.收款单行
		/// </summary>
		private List<ufida.u9.ait.openapi.RecBillLineAITDTOData> m_recBillLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.RecBillLineAITDTOData> RecBillLines
		{
			get	
			{	
				if (m_recBillLines == null )
				{
					List<ufida.u9.ait.openapi.RecBillLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.RecBillLineAITDTOData>() ;
					m_recBillLines = n_m_list ;
				}
				return m_recBillLines ;
			}
			set	
			{	
				m_recBillLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 本币
		/// 收款单AITDTO.Misc.本币
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_fC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData FC
		{
			get	
			{	
				return m_fC ;
			}
			set	
			{	
				m_fC = value ;	
			}
		}
			
		

		/// <summary>
		/// 供应商
		/// 收款单AITDTO.Misc.供应商
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_supp ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Supp
		{
			get	
			{	
				return m_supp ;
			}
			set	
			{	
				m_supp = value ;	
			}
		}
			
		

		/// <summary>
		/// 收款员
		/// 收款单AITDTO.Misc.收款员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_receiver ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Receiver
		{
			get	
			{	
				return m_receiver ;
			}
			set	
			{	
				m_receiver = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注1
		/// 收款单AITDTO.Misc.备注1
		/// </summary>
		private System.String m_note ;
		[DataMember(IsRequired=false)]
		public System.String Note
		{
			get	
			{	
				return m_note ;
			}
			set	
			{	
				m_note = value ;	
			}
		}
			
		

		/// <summary>
		/// 税组合
		/// 收款单AITDTO.Misc.税组合
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_taxSchedule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TaxSchedule
		{
			get	
			{	
				return m_taxSchedule ;
			}
			set	
			{	
				m_taxSchedule = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																																		
		#endregion 
	} 	
}
